#ifndef USRT_REV_H
#define USRT_REV_H
#include <QMainWindow>
#include <stdint.h>
typedef enum
{
    Item_None = 0,
    Item_5,
    Item_6,
    Item_7,
    Item_8,
    Item_9,
    Item_10,
    Item_12,
} Test_item;

typedef struct
{
    uint32_t NG_num;
    uint32_t SU_num;
    uint32_t SCAN_num;
    uint32_t Common_Cali_Value;
    uint32_t ibeacon_Cali_Value;
} Item_5_data_info;

typedef struct
{
    uint32_t request_num;
    uint32_t connect_num;
    uint32_t disconnect_num;
    uint32_t fault_num;
    uint8_t rece_connect_flag;
} Item_67_data_info;

typedef struct
{
    uint32_t connect_timer;
    uint32_t disconnect_num;
}Item_89_data_info;

typedef struct
{
    uint32_t SRF_Success;
    uint32_t SRF_fail;
    uint32_t SRR_Success;
    uint32_t SRR_fail;
    uint32_t SRF_Cali_Value;
    uint32_t SRR_Cali_Value;
}Item_12_data_info;

extern Test_item T_item;
void data_handle(QByteArray buffer);
void Item_5_data_info_init(void);
void Item_67_data_info_init(void);
void Item_89_data_info_init(void);
void Item_10_data_info_init(void);
void Item_12_data_info_init(void);
void Item_5_QTime_max_init(void);
void Item_67_QTime_max_init(void);
void Item_89_QTime_max_init(void);
void Item_10_QTime_max_init(void);
void Item_12_QTime_max_init(void);
void Item_67_fault_time_fun(void);
void get_QTable_value(void);
#endif // USRT_REV_H
